/// key value 键值对
class PlanStudyModel<T> {
  int? indexNum;
  String? id;
  String? audioUrl;
  String? fileName;
  String? thumbnailUrl;

  PlanStudyModel(
      {this.indexNum,
      this.id,
      this.audioUrl,
      this.fileName,
      this.thumbnailUrl});

  factory PlanStudyModel.fromJson(Map<String, dynamic> json) => PlanStudyModel(
        indexNum: json['indexNum'] as int?,
        id: json['id'] as String?,
        audioUrl: json['audioUrl'] as String?,
        fileName: json['fileName'] as String?,
        thumbnailUrl: json['thumbnailUrl'] as String?,
      );

  Map<String, dynamic> toJson() => {
        'indexNum': indexNum,
        'id': id,
        'audioUrl': audioUrl,
        'name': fileName,
        'thumbnailUrl': thumbnailUrl,
      };
}
